package organization

import "time"

type CommonOrganization struct {
	//uid
	Uid string `gorm:"primary_key"`
	//组织uid
	BuUid string
	//租户code
	TenantCode string
	//组织编码
	BuCode string
	//父级组织uid
	ParentBuUid string
	//bu类型
	BuType int32 `gorm:"default:0"`
	//level
	Level int32 `gorm:"default:0"`
	//组织名称
	BuName string
	//组织全称
	BuFullName string
	//公司uid
	CompanyUid string
	//是否禁用
	IsDisabled int32 `gorm:"default:0"`
	//创建时间
	CreatedTime time.Time `gorm:"default:CURRENT_TIMESTAMP"`
	//修改时间
	ModifiedTime time.Time `gorm:"default:CURRENT_TIMESTAMP"`
}

func (p CommonOrganization) TableName() string {
	return "common_organization"
}
